$(function () {
    findAll();
});

function findAll() {
    layui.use(['form', 'jquery'],
        function () {
            $ = layui.jquery;
            var form = layui.form;
            let data = myAjax("/back/cuisine/findAll", {}, "get");
            let html = '';
            data=data.list;
            for (let i = 0; i < data.length; i++) {
                html += '<option value="' + data[i].id + '">' + data[i].name + '</option>';
            }
            $("#cuisine").html(html);
            form.render();
        });


}